package com.example.demo01.fragments;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.demo01.R;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link Fragment02#newInstance} factory method to
 * create an instance of this fragment.
 */
public class Fragment02 extends Fragment {



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_test02, container, false);

        initView(view);
        return view;
    }

    //. 初始化视图
    private void initView(View v) {

        addListener();
    }

    //. 添加点击事件
    private void addListener() {

    }
}